package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 丧彪
 * @description 封装了分页的基本查询条件
 */
@Setter@Getter
public class QueryObject {
	private int page = 1; //当前页
	private int rows = 10; //每页显示行数
	
	public int getStartIndex() {
		return (page - 1) * rows;
	}
}
